<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0, width=device-width"/>
	<title>api</title>
	<link rel="stylesheet" type="text/css" href="../css/api.css" />
	<link rel="stylesheet" type="text/css" href="../css/common.css" />
	<link rel="stylesheet" type="text/css" href="../css/detail.css" />
	<link rel="stylesheet" type="text/css" href="../css/base.css" />
</head>


<body id="app" class="detail">
	<div id="detail">
	<!-- 头部开始 -->
		<header id='header'>
			<div class='header detail'>
				<i id='back' onclick="back()"></i><h1>商品详情</h1><span class="i-right" onclick="backCart()"></span><div style="display: none" id='cartNum'></div>
			</div>
		</header>
	<!-- 头部结束 -->

	</div>
	


     <script id='detail-template' type="text/x-dot-template">
     		{{if(it.newId){}}
     		<div id="" class="m-simpleFooter-text" style="text-align:center">
                <a onclick='reshGoods({{=it.newId}})' class="addBtn partake" style="float: right; margin-right: 5px;">立即参与</a><span class="g-span-left">新的一期正在火热进行...</span>
            </div>
     		{{}else{}}
     		 <div data-pro="text" class="m-simpleFooter-text" style="text-align:center">
                        <a onclick="addCart({{=it.id}},'buy')" id="btnOneQuickBuy" class="w-button w-button-main btnOneQuickBuy" href="javascript:void(0);">立即参与</a>
                        <a onclick="addCart({{=it.id}})" id="btnOneAddToCart" class="w-button w-add" href="javascript:void(0);">加入清单</a>
                    </div>
     		{{}}}
     		
                    
                    <div data-pro="ext" class="m-simpleFooter-ext"></div>

     </script>

	<div class="m-simpleFooter m-detail-buy border-top-img" id="oneBtnBuy">
                   
            <div data-pro="text" class="m-simpleFooter-text" style="text-align:center">
                        <a onclick="addCart({{=it}},'buy')" id="btnOneQuickBuy" class="w-button w-button-main btnOneQuickBuy" href="javascript:void(0);">立即参与</a>
                        <a onclick="addCart({{=it}})" id="btnOneAddToCart" class="w-button w-add" href="javascript:void(0);">加入清单</a>
                    </div>
           
        
                </div>

</body>
<script type="text/javascript" src="../script/zepto.min.js"></script>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/doT.min.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
	<script type="text/javascript" src="../script/detail.js"></script>
</html>